import { request, download } from '../request'

// 查询站点数据分析接口
export function getSiteDataAnalysis(data) {
  console.log(data)
  return request({
    url: '/business/statistics/getSiteData',
    params: data
  })
}

// 查询时间数据分析接口
export function getTimeDataAnalysis(data) {
  console.log(data)
  return request({
    url: '/business/statistics/getTimeData',
    params: data
  })
}

// 查询轴数数据分析接口
export function getAxleDataAnalysis(data) {
  console.log(data)
  return request({
    url: '/business/statistics/getAxleData',
    params: data
  })
}

// 查询区域数据分析接口
export function getAreaDataAnalysis(data) {
  console.log(data)
  return request({
    url: '/business/statistics/getAreaData',
    params: data
  })
}
// 导出
export function exportSiteData(data) {
  return download({
    url: '/business/statistics/exportSiteData',
    params: data,
    responseType: 'blob'
  })
}
export function exportTimeData(data) {
  return download({
    url: '/business/statistics/exportTimeData',
    params: data,
    responseType: 'blob'
  })
}
export function exportAxleData(data) {
  return download({
    url: '/business/statistics/exportAxleData',
    params: data,
    responseType: 'blob'
  })
}
export function exportAreaData(data) {
  return download({
    url: '/business/statistics/exportAreaData',
    params: data,
    responseType: 'blob'
  })
}

